import React from 'react'
import './App.css';
// 导入路由组件
import { HashRouter, Route, Link, Redirect } from 'react-router-dom'
//导入store
import store from './store';
import {Provider} from 'react-redux';
import Register from './components/components1/register/register.jsx'
import Loginmima from './components/components1/loginmima/loginmima.jsx'
import Loginyzm from './components/components1/loginyzm/loginyzm.jsx'
import People from './components/components1/people/home.jsx'
import Producthome from './components/components1/product/home.jsx'
import Productsearch from './components/components1/product/productseach'
import Shopcart from './components/components1/cart/cart'
import Home from './components/components1/home/home'
import Querendingdan from './components/components2/queren/queren'


import Paymentsuccessful from './components/components3/paymentsuccessful/payment'
import Cgtijiao from './components/components1/cgtijiao/cgtijiao'
import Cgtijiaodd from './components/components2/tijiaochengong/cgtijiao'

import Shangjia from './components/components2/shangjia/shangjia'
import Shangjiadetail from './components/components2/sjsou/sjsou'
import Action from './components/action/action.jsx'
function App() {
  return (
    <Provider store={store}>
    <HashRouter>
        <Redirect path="/" to="/action" /> 
      <Route path='/register' component={Register}></Route>
      <Route path='/loginmima' component={Loginmima}></Route>
      <Route path='/loginyzm' component={Loginyzm}></Route>
      <Route path='/people' component={People}></Route>
      <Route path='/producthome' component={Producthome}></Route>
        <Route path="/cgtijiao" component={Cgtijiao}></Route>
        <Route path="/cgtijiaodd" component={Cgtijiaodd}></Route>
        <Route path="/productsearch/:keywords" component={Productsearch}></Route>
       <Route path='/shopcart' component={Shopcart}></Route>
       <Route path='/home' component={Home}></Route>


        <Route path="/action" component={Action}></Route>

        <Route path="/paymentsuccessful" component={Paymentsuccessful}></Route>
        <Route path="/querendingdan" component={Querendingdan}></Route>
        <Route path='/shangjia' component={Shangjia}></Route>
        <Route path='/shangjiadetail' component={Shangjiadetail}></Route>
    </HashRouter>
    </Provider>
  );
}

export default App;
